<!-- 用户服务协议和关于我们 -->
<template>
	<view class="my-content parse">
		<u-parse style="margin-left: 2.5%;
    width: 95%;" :html="list.content" :show-with-animation="true">></u-parse>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list: {},
				type:''
			};
		},
		onLoad(option) {
			this.type= option.type
			this.$u.api.basic.getContentData({
				type: option.type,
				nowlang:getApp().globalData.lang
			}).then(res => {
				console.log(res);
				this.list = res
			})
		},
		onReady() {
			uni.setNavigationBarTitle({		//自定义标题
				title: this.$t(this.type)
			})
		}
	}
</script>

<style lang="scss" scoped>
	.parse {
		font-size: 32rpx;
		line-height: 1.8;
	}
</style>